
import com.jxgk.application.Application;
import com.jxgk.application.pojo.User;
import com.jxgk.application.service.UserService;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.omg.PortableInterceptor.USER_EXCEPTION;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.Date;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes ={Application.class})
public class testAddUser {

  @Autowired
  private UserService userService;

  @Test
    public void testAddUser(){
        User user = new User();
        user.setNam("小的康");
        user.setSex("男");
        user.setPwd("123");

        userService.addUser(user);

    }
}
